use zmath::Vec4;
use crate::Brick;
use crate::Space;

impl Space {
    pub fn new() -> Self {
        Self {
            bricks: vec![],
            bg_color: Vec4::zero()
        }
    }
    pub fn set_background_color(&mut self, bg_color: Vec4) {
        self.bg_color = bg_color;
    }

    pub fn background_color(&self) -> Vec4 {
        self.bg_color
    }

    pub fn add_brick(&mut self, brick: Brick) {
        self.bricks.push(brick);
    }
}